<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>无标题文档</title>
		<link href="__VIEW__/css/style1.css" rel="stylesheet" type="text/css" />
		<link href="__VIEW__/css/select.css" rel="stylesheet" type="text/css" />
		<link href="__STATIC__/css/hdjs.css" rel="stylesheet" type="text/css" />
	
		<script type="text/javascript" src="__STATIC__/js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="__STATIC__/js/hdjs.min.js"></script>

		<script type="text/javascript">
			$(function(){
				$('#updateAdminUser').validate({
					
					password:{
						rule:{
							required:true,
							minlen:6,
							confirm:'rpassword'
						},
						error:{
							required:'密码必须填写',
							minlen:'密码不能小于6个长度',
							maxlen:'密码不能大于12个长度',
							confirm:'两次密码不一致'
						},
						message:'请输入管理员密码',
						success:'输入正确'
					},
					rpassword:{
						rule:{
							required:true
						},
						error:{
							required:'重复密码必须填写'
						},
						message:'请输入重复密码'
						
					}
				})
			});
		</script>
	</head>

	<body>

		<div class="place">
			<span>位置：</span>
			<ul class="placeul">
				<li><a href="#">首页</a>
				</li>
				<li><a href="#">用户管理</a>
				</li>
				<li><a href="#">添加后台用户</a>
				</li>
			</ul>
		</div>

		<div class="formbody">

			<div id="usual1" class="usual">

				<div class="itab">
					<ul>
						<li><a href="#tab1" class="selected">管理员信息</a>
						</li>
						
					</ul>
				</div>

				<div id="tab1" class="tabson">

					
					<form action="{|U:'updateAdminUser'}" method="post" id="updateAdminUser">
						<ul class="forminfo">
							<li>
								<label>管理员帐号<b>*</b>
								</label>
								<input type="hidden" name="aid" value="{$adminInfo.aid}" /> 
								<input name="adminuser" value="{$adminInfo.adminuser}" disabled="disabled" type="text" class="dfinput" placeholder="请填写用户名" style="width:518px;" /> <a href="javascript:changeUser()">点击修改帐号</a>
								<input type="hidden" id="hidenuser" name="adminuser" value="{$adminInfo.adminuser}" />
							</li>
							<li>
								<label>密码<b>*</b>
								</label>
								<input name="password" type="password" class="dfinput" placeholder="请填写用户密码" style="width:518px;" />
							</li>
							<li>
								<label>重复密码<b>*</b>
								</label>
								<input name="rpassword" type="password" class="dfinput" placeholder="请再次输入密码" style="width:518px;" />
							</li>
							

							
							<li>
								<label>是否锁定
								</label>
								<div class="vocation">
									<label for="lock">
										<input id="lock" type="radio" value="1" name="is_lock" />锁定</label>
									<label for="unlock">
										<input id="unlock" type="radio" value="0" name="is_lock" checked="checked" />正常</label>

								</div>

							</li>
							<li>
								<label>&nbsp;</label>
								<input name="" type="submit" class="btn" value="添加" />
							</li>

						</ul>

				</div>

				
			</div>


			<script type="text/javascript">
				$('.tablelist tbody tr:odd').addClass('odd');
				function changeUser(){
					$('input[name=adminuser]').removeAttr('disabled');
					$('#hidenuser').remove();
				}
			</script>

		</div>

	</body>

</html>